<?php
include '../wp-includes/php/DBManager.class.php';

$idMSG= $_GET['idMSG'] ;

$db = new DBManager ( 'localhost',  'root',  '',  'iumus' );
$query="UPDATE messaggi SET letto = 0 WHERE id = ".$idMSG;
$db->executeQuery ($query);
?>